import instance from '@/utils/request'
export const getPermissionList = () => {
  return instance.get('/sys/permission')
}
export const addPermission = (data) => {
  return instance.post('/sys/permission', data)
}
// 更新权限
export const updatePermission = (data) => {
  return instance.put(`/sys/permission/${data.id}`, data)
}
// 权限详情
export const getPermissionDetail = (id) => {
  return instance.get(`/sys/permission/${id}`)
}
// 删除
export const delPermission = (id) => {
  return instance.delete(`/sys/permission/${id}`)
}
